﻿using Abp.Domain.Entities;
using System;

namespace Batman.Jianbei.Forum.Core.ChatRoom
{
    /// <summary>
    /// 房间里的匿名身份
    /// </summary>
    public class RoomMask : Entity<string>
    {
        public string RoomId { get; set; }

        public string MaskId { get; set; }

        public string Uid { get; set; }

        /// <summary>
        /// 是否还在房间
        /// </summary>
        public bool IsInRoom { get; set; }

        /// <summary>
        /// 最后报到时间
        /// </summary>
        public DateTime CheckIn { get; set; }

        /// <summary>
        /// 禁止进入（被踢的）
        /// </summary>
        public bool NotEntry { get; set; }

        public Mask Mask { get; set; }

        public TalkRoom Room { get; set; }

        public RoomMask()
        {
            this.CheckIn = DateTime.Now;
        }

        public RoomMask(string roomId, string maskId, string uid, bool isInRoom) : this()
        {
            RoomId = roomId;
            MaskId = maskId;
            Uid = uid;
            IsInRoom = isInRoom;
        }
    }
}
